<p>news works!</p>

<br>
<br>


<a [routerLink]="['/newscontent']">新闻详情页</a>
<h2> angular get传值方式</h2>

<!-- <ul>
    <li *ngFor= "let item of list;let key = index">
        <a [routerLink]="['/newscontent']" [queryParams]="{newId:key}">{{key}}--{{item}}</a>
    </li>
</ul> -->

<h2>动态路由</h2>

<ul>
    <li *ngFor="let item of list;let key = index;">
       <a [routerLink]="['/newscontent/',key]">{{key}}--{{item}}</a>
    </li>
</ul>